package util.boyaa.recycle 
{
	import flash.display.Sprite;
	
	/**
	 * ...
	 * @author henrylee   Any question, pls contact me. henrylee_sz@qq.com.
	 */
	public class NormalRecycleFactory extends RecycleFactory
	{
		
		private const MAX_LIMIT: int = 5;
		
		public function NormalRecycleFactory()
		{
			super();
			// 在这里注册该缓存池允许的类型和每个类型最大缓存个数
			m_warrantable[Recycleable]   =  MAX_LIMIT;
		}
		
		/**
		 * 此函数不应该公开，此处仅仅是测试需要
		 * @param	type
		 * @return
		 */
		public function getInstanceList(type:Class): Vector.<IRecyclable>
		{
			return m_recyclableMap != null ? m_recyclableMap[type] : null;
		}
		
		public function get maxLimit(): int
		{
			return MAX_LIMIT;
		}
		
	}

}